import { SmsCodeVO } from '@/api/login'
import request from '@/config/axios/appRequest'

export type ConfigTypeVO = {
  configId: number | undefined
  configName: string
  configValue: string
  status: number
  configKey: string
}

export const getSystemConfigByKey = (configKey) => {
  return request.get({ url: '/system/config/getkey', params: { configKey } })
}
//获取登录验证码
export const sendSmsCode = (data: SmsCodeVO) => {
  return request.post({ url: '/system/auth/send-sms-code', data })
}
